package com.rongke.mapper;

import com.rongke.model.Sku;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @SkuMapper
 * @商品skuMapper
 * @version : Ver 1.0
 */
public interface SkuMapper extends BaseMapper<Sku>{

    List<Sku>  selectByCondition(Sku sku);

    /**
     * 根据id 集合 获取sku集合
     * @param skuIds
     * @return
     */
    List<Sku> selectSkuListAndIdIn(@Param("skuIds") Set<String> skuIds);

    List<Sku> getSkuListAdmin(Map map);

    Integer getSkuListCountAdmin(Map map);
}
